<script setup>
//import HelloWorld from './components/HelloWorld.vue'
// 导入Navbar和Footer组件
import Navbar from '@/components/Navbar.vue'
import Footer from '@/components/Footer.vue'

</script>

<template>
  <div class="app-container">
    <!-- 全局共享的导航栏 -->
    <Navbar />
    
   <!-- 只保留路由出口，所有页面都通过这里渲染 -->
    <main class="main-content">
      <router-view />
    </main>

    <!-- 引入页脚组件 -->
    <Footer />
  </div>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}

/* 新增的样式，实现粘性页脚 */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}
</style>